package com.ithei.多线程第二天.阻塞队列等待唤醒机制实现;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> bd = new ArrayBlockingQueue<String>(1);
        Cooker ck=new Cooker(bd);
        Foodie fd=new Foodie(bd);
        ck.start();
        fd.start();
    }
}
